package com.xian.array;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public class Test1 {
	private static final Logger logger = LoggerFactory.getLogger(Test1.class); 

	public static void main(String[] args) {
		logger.info("测试自定义数组...");
		
		MyArrayList myArrayList = new MyArrayList();
		System.out.println(myArrayList.size());
		myArrayList.showArr();
		
		myArrayList.add(300);
		myArrayList.add(301);
		myArrayList.add(302);
		myArrayList.add(303);
		myArrayList.add(304);
		myArrayList.add(305);
		myArrayList.add(306);
		myArrayList.add(307);
		myArrayList.add(308);
		myArrayList.showArr();
		
		logger.info("脚本{}的值为{}.", 3, myArrayList.find(3));
		
		myArrayList.remove(6);
		myArrayList.showArr();
		
		myArrayList.clear();
		myArrayList.showArr();
		
		myArrayList.add(4, 48);
		myArrayList.showArr();

		myArrayList.add(309);
		myArrayList.add(310);
		myArrayList.showArr();
		
		

	}

}
